from libs.ZLayer import ZLayer
from libs.components.ZMap import ZMap


class MapLayer ( ZLayer ) :
    def __init__ ( self , father , filename ) :
        super ( MapLayer , self ).__init__ ( father )
        self.filename = filename
        self.map = ZMap ( self , self.filename )

    def draw ( self ) :
        super ( MapLayer , self ).draw ( )
        self.map.draw ( )

    def update ( self , event , keys , m_keys , m_pos ) :
        super ( MapLayer , self ).update ( event , keys , m_keys , m_pos )
        self.map.update ( event , keys , m_keys , m_pos )
